-- GENERATED SPELL FOR [Arikara] --


function spell0_10882(pUnit, Event) --@Curse of Vengeance,n/a--
pUnit:FullCastSpellOnTarget(17213,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10882', 530, 1)
end

function spell1_10882(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_10882', 582, 1)
end

function Sorts_10882(pUnit, Event)
local choix_sorts_10882 = math.random(0, 1)
if choix_sorts_10882 == 0 then
pUnit:RegisterEvent('spell0_10882', 1, 1)
end
if choix_sorts_10882 == 1 then
pUnit:RegisterEvent('spell1_10882', 1, 1)
end
end

function mob10882_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10882', math.random(1500, 3000), 1)
end

function mob10882_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10882_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10882_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10882, 1, 'mob10882_Action')
RegisterUnitEvent(10882, 2, 'mob10882_Leave')
RegisterUnitEvent(10882, 3, 'mob10882_Kill')
RegisterUnitEvent(10882, 4, 'mob10882_Die')
